package com.lagou.task08;

public class DogTest {
    public static void main(String[] args) {
        //1.使用无参数构造函数构造
        Dog dg1 = new Dog();
        dg1.show();
        System.out.println();
        //1.使用有参数构造函数构造
        Dog dg2 = new Dog("小黄","yellow",20);

        dg2.show();
    }
}
